package com.castle.fortress.admin.rule.listRule.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 规则清单与规则关联表联合查询结果 实体类
 *
 * @author
 * @since 2024-04-24
 */
@Data
@ApiModel(value = "ruleListRuleWithInfo对象", description = "规则清单与规则关联表联合规则表查询结果")
public class RuleListRuleWithInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    // RuleListRule表字段
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "关联ID")
    @JsonProperty("id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "清单ID")
    @JsonProperty("listId")
    private Long listId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "规则ID")
    @JsonProperty("ruleId")
    private Long ruleId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "合同ID")
    @JsonProperty("contractId")
    private Long contractId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    private Date createTime;

    // Rule表字段
    @ApiModelProperty(value = "规则名称")
    @JsonProperty("ruleName")
    private String ruleName;

    @ApiModelProperty(value = "规则描述")
    @JsonProperty("ruleDesc")
    private String ruleDesc;

    @ApiModelProperty(value = "规则类型")
    @JsonProperty("ruleType")
    private String ruleType;

    @ApiModelProperty(value = "规则来源")
    @JsonProperty("ruleSource")
    private String ruleSource;

    @ApiModelProperty(value = "风险级别")
    @JsonProperty("riskLevel")
    private String riskLevel;

    @ApiModelProperty(value = "消息内容")
    @JsonProperty("message")
    private String message;

    @ApiModelProperty(value = "删除状态：2-未删除，1-已删除")
    @JsonProperty("isDeleted")
    private Boolean isDeleted;

    @ApiModelProperty(value = "审核状态")
    @JsonProperty("reviewStatus")
    private String reviewStatus;
}
